﻿using Library.Domain;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Core.Domain
{
    public class Role : IdentityRole, IBaseEntity<string>
    {
        public Role()
        {
            BrokenRules = new List<ValidationRule>();
        }

        private List<ValidationRule> _brokenRules;

        [NotMapped]        
        public virtual List<ValidationRule> BrokenRules
        {
            get { return _brokenRules; }
            set { _brokenRules = value; }
        }
        
        public bool Validate()
        {
            return true;
        }      
    }
}
